from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.



def index(request):
    #print(type(request))
    #<class 'django.core.handlers.wsgi.WSGIRequest'>
    from django.core.handlers.wsgi import WSGIRequest
    print('{:-^60}'.format('淫荡的分割线 COOKIES'))
    print(request.COOKIES)
    print('{:-^60}'.format('淫荡的分割线 FILES'))
    print(request.FILES)
    print('{:-^60}'.format('淫荡的分割线GET'))
    print(request.GET)
    print('{:-^60}'.format('淫荡的分割线 META'))
    #print(request.META)
    print('{:-^60}'.format('淫荡的分割线 POST'))
    print(request.POST)
    print('{:-^60}'.format('淫荡的分割线'))

    #print(request.path)
    ##print(request.path_info)
    #print(request.get_host())
    #print(request.get_port())
    #print(type(request.get_host()))
    #print(type(request.get_port()))
    #print(request.method)
    #print(type(request.method))

    from django.utils.functional import SimpleLazyObject
    print(type(request.scheme))
    print(request.scheme)
    
    print('{:-^60}'.format('淫荡的分割线'))
    #<class 'django.utils.functional.SimpleLazyObject'>
    
    
    #print(dir(request.method))


    return render(request, 'app1/index.html', {

    })